package com.ruoyi.image.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.image.mapper.AcupointImageMapper;
import com.ruoyi.image.domain.AcupointImage;
import com.ruoyi.image.service.IAcupointImageService;

/**
 * 全身穴位图片主Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-10
 */
@Service
public class AcupointImageServiceImpl implements IAcupointImageService 
{
    @Autowired
    private AcupointImageMapper acupointImageMapper;

    /**
     * 查询全身穴位图片主
     * 
     * @param id 全身穴位图片主主键
     * @return 全身穴位图片主
     */
    @Override
    public AcupointImage selectAcupointImageById(Long id)
    {
        return acupointImageMapper.selectAcupointImageById(id);
    }

    /**
     * 查询全身穴位图片主列表
     * 
     * @param acupointImage 全身穴位图片主
     * @return 全身穴位图片主
     */
    @Override
    public List<AcupointImage> selectAcupointImageList(AcupointImage acupointImage)
    {
        return acupointImageMapper.selectAcupointImageList(acupointImage);
    }

    /**
     * 新增全身穴位图片主
     * 
     * @param acupointImage 全身穴位图片主
     * @return 结果
     */
    @Override
    public int insertAcupointImage(AcupointImage acupointImage)
    {
        acupointImage.setCreateTime(DateUtils.getNowDate());
        return acupointImageMapper.insertAcupointImage(acupointImage);
    }

    /**
     * 修改全身穴位图片主
     * 
     * @param acupointImage 全身穴位图片主
     * @return 结果
     */
    @Override
    public int updateAcupointImage(AcupointImage acupointImage)
    {
        acupointImage.setUpdateTime(DateUtils.getNowDate());
        return acupointImageMapper.updateAcupointImage(acupointImage);
    }

    /**
     * 批量删除全身穴位图片主
     * 
     * @param ids 需要删除的全身穴位图片主主键
     * @return 结果
     */
    @Override
    public int deleteAcupointImageByIds(Long[] ids)
    {
        return acupointImageMapper.deleteAcupointImageByIds(ids);
    }

    /**
     * 删除全身穴位图片主信息
     * 
     * @param id 全身穴位图片主主键
     * @return 结果
     */
    @Override
    public int deleteAcupointImageById(Long id)
    {
        return acupointImageMapper.deleteAcupointImageById(id);
    }
}
